package com.huangliusong.desigin.pattern.structual.decorator.v2;

/**
 * @author huangliusong
 * @since 2018/10/11
 * {@link }
 */
public class Test {
    public static void main(String[] args) {
        ABattercake aBattercake;
        aBattercake=new Battercake();
        aBattercake=new EggDecorator(aBattercake);
        aBattercake=new EggDecorator(aBattercake);
        aBattercake=new SausageDecorator(aBattercake);


        System.out.println(aBattercake.getDesc()+"  销售的价格为："+aBattercake.cost());

    }
}
